// import { FormProps, FormSchema } from '/@/components/Table';
import { BasicColumn } from '/@/components/Table/src/types/table';

export function getCols(): BasicColumn[] {
  return [
    {
      title: '项目名称',
      dataIndex: 'project',
      key: 'project',
    },
    {
      title: '通道',
      dataIndex: 'channel',
      key: 'channel',
    },
    {
      title: '温度(℃)',
      dataIndex: 'temp',
      key: 'temp',
    },
    {
      title: '测量值(KN)',
      dataIndex: 'data1',
      key: 'data1',
    },
    {
      title: '采集时间',
      dataIndex: 'ts',
      key: 'ts',
    },
    {
      title: '传感器',
      dataIndex: 'sensor',
      key: 'sensor',
    },
  ];
}

export function getRows() {

  return (() => {
    const arr: any = [];
    for (let index = 0; index < 40; index++) {
      arr.push({
        id: `${index}`,
        project: 'XX项目',
        point: '监测点A',
        level: '一般',
        exceed: 12.34,
        created_at: '2022-12-31 11:23',
        sensor: '',
      });
    }
    return arr;
  })();
}

